package com.heima.common.util;

import com.heima.common.dto.User;

public class WeMediaThreadLocal {
    private static ThreadLocal<User> threadLocal = new ThreadLocal();

    public static void set(User user){
        threadLocal.set(user);
    }

    public static User get(){
        return threadLocal.get();
    }
}
